package com.yunxi.dao.sto;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.sto.StoManage;
import com.yunxi.sto.pojo.StoManageEditVO;
import com.yunxi.sto.pojo.StoManageVO;
import com.yunxi.sto.pojo.VehicleStockFrozenListVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 仓库结构管理 Mapper 接口
 * </p>
 *
 * @author caoYong
 * @since 2019-05-14
 */
public interface StoManageMapper extends BaseMapperPlus<StoManage> {
    List<StoManage> findAll(Map map);

    List<StoManageVO> detail(String storageCode);

    void disabled(String storageId);

    /**
     * 通过库位代码查询仓库代码
     * @param code
     * @return
     */
    String queryStroageByCode(String code);

    /**
     * 根据库位代码查询仓库全名
     * @param storageCode
     * @return
     * @throws Exception
     */
    String getStorageFullName(String storageCode)throws Exception;

    /**
     * 根据仓库代码查询四级仓库名称
     * @param pid
     * @return
     * @throws Exception
     */
    StoManageEditVO getStorageNames(String pid)throws Exception;

    List<String> getChildStorageId(String storageId);

    List<VehicleStockFrozenListVO> exportFrozenHis();
}
